package com.zyz.I_多线程.创建方式.练习.方式一;

/**
 * @author: vick
 * @Date: 2025/3/21
 * @Description:
 * @version: 1.0
 */
public class Race {
    public static void main(String[] args) {
        //创建乌龟和兔子的线程
        Thread tortoise = new Thread(new Tortoise(), "乌龟");
        Thread hare = new Thread(new Hare(), "兔子");

        //启动线程
        tortoise.start();
        hare.start();
    }
}
